/*-------------------------------------
		sPlugin
	    By Scooby, 2010
-------------------------------------*/

local PLUGIN = {}

PLUGIN.Name = "Slay"
PLUGIN.Author = "Scooby"
PLUGIN.Command = "slay"
PLUGIN.Group = 2
PLUGIN.Category = "Punishment"
PLUGIN.Format = "string"
PLUGIN.Use = "<Player>"
PLUGIN.Menu = {
	{
		title = "Choose Player",
		cont = "#players",
		apos = 1
	}
}


function PLUGIN:Main( ply, args )
	
	local pl = spl:FindPly( args[1] )
	
	if( #pl == 0 ) then
		spl:PrintC( ply, spl.red, spl.fnp )
		return false
	elseif( #pl > 1 ) then
		spl:PrintC( ply, spl.red, spl.fmp )
		return false
	end
	
	pl[1]:Kill()
	
	spl:PrintC( spl.green, pl[1]:Nick(), spl.white, " Was Slayed By ", spl.blue, ply:Nick() )
	
end

spl:AddPlugin( PLUGIN )